/*    */ package com.zimbra.cs.mailbox.lock;
/*    */ 
/*    */ import java.util.concurrent.atomic.AtomicInteger;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class MailboxLockOwner
/*    */ {
/* 26 */   private AtomicInteger count = new AtomicInteger(0);
/*    */   private final Thread owner;
/*    */   
/*    */   MailboxLockOwner() {
/* 30 */     this.owner = Thread.currentThread();
/*    */   }
/*    */   
/*    */   void increment() {
/* 34 */     this.count.incrementAndGet();
/*    */   }
/*    */   
/*    */   int decrement() {
/* 38 */     return this.count.decrementAndGet();
/*    */   }
/*    */   
/*    */   int getCount() {
/* 42 */     return this.count.get();
/*    */   }
/*    */   
/*    */   Thread getOwnerThread() {
/* 46 */     return this.owner;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/mailbox/lock/MailboxLockOwner.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */